package com.zts.base.resource;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Created by Zhangkh on 2017/5/31.
 */
public class PagedResource<T extends BaseResource> extends ListResource<T> {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long page;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long size;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long limit;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long offset;

    public Long getPage() {
        return page;
    }

    public void setPage(Long page) {
        this.page = page;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getLimit() {
        return limit;
    }

    public void setLimit(Long limit) {
        this.limit = limit;
    }

    public Long getOffset() {
        return offset;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }
}
